package com.yu1996.gulimall.product.feign;

import com.yu1996.common.to.es.SkuEsModel;
import com.yu1996.common.utils.R;
import java.util.List;
import java.util.Map;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-search")
public interface SearchFeignService {

  /**
   * 新增商品sku信息到es
   *
   * @param models
   * @return
   */
  @PostMapping("search/save/product")
  public R productStatusUp(@RequestBody List<SkuEsModel> models);
}
